﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DelegationAndEvents
{
    abstract class CreditCard
    {
        public event RepaymentHandler ExpireEvent;

        public event RepaymentMoneyHandler ExpireMoneyEvent;

        public string CreditName;
        public abstract void check1();
        public abstract void check2();


        protected virtual void OnExpire()
        {
            if (ExpireEvent != null)
                ExpireEvent();
        }
        protected virtual void OnExpireMoney(object sender, RepaymentEventArgs args)
        {
            if (ExpireMoneyEvent != null)
                ExpireMoneyEvent(sender, args);
        }
    }
}
